﻿using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;

namespace SLClient.CustomerControls
{
    public partial class Top10WinnerControl : UserControl
    {

        public Top10WinnerControl(PlayDataInfo playDataInfo)
        {
            this.InitializeComponent();
            base.DataContext=new TopWinerViewmodel(playDataInfo);
        }

        public Top10WinnerControl(int catagory, string tag)
        {
            this.InitializeComponent();
            base.DataContext=new TopWinerViewmodel(catagory, tag);
        }

        private void lbxTop10Winner_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            (base.DataContext as TopWinerViewmodel).ShowDetail();
        }
    }
}
